package de.wellenblau.objectGetter
{
	import flash.utils.describeType;
	
	public class PathTranslation
	{
		
		private static var absolutePath:String = "";
		
		public static function set setAbsolutePath(newPath:String):void{
			absolutePath = newPath;
		}
		
		public static function rel2abs(relativePath:String):String{
			return absolutePath+relativePath;
		}
		
		public static function set flashVars(fv:Object):void{
			//custom abspath
			if(fv.abspath != null) setAbsolutePath = fv.abspath.toString();
			//std path
			else setAbsolutePath = "./";	
			
		}
		
		public function PathTranslation()
		{
		}

	}
}